package com.zrrd.learn.chapter05;

/**
 * 循环
 *
 * @author wrn
 * @version 1.0
 * @date 2023/6/10 15:55
 */

public class test3 {

    /**
     *2题： (1+4*9)+(2+6*8)+(3+8*7)+(4+10*6)
     */
    public static void questionOne01(){
        int n = 0;
        for (int i = 1; i <= 4; i++) {
            n += (i + (2 * (i + 1)) * (10 - i));
        }
        System.out.println(n);
    }

    /**
     *循环3次 每次打印一个[0,10] 范围内的随机整数
     */

    public static void questionTwo01(){
        int[] arr = new int[3];
        int index = 0;
    }

    public static void main(String[] args) {
        questionOne01();
    }

}
